package com.leunpha.mini.utils;

import java.io.File;
/**
 * User: zhoujingjie
 * Date: 14-5-15
 * Time: 下午3:18
 */
public class FileUtils {


    public static File mkdirsIfUnExists(String path){
        File dir = new File(path);
        if(!dir.exists())
            dir.mkdirs();
        return dir;
    }
    public static File createNewFile(String savePath,String saveName){
        return new File(mkdirsIfUnExists(savePath).getAbsolutePath().concat(File.separator)+saveName);
    }
}
